import os
print(os.getcwd())
print(os.listdir())

try:
    data = open('./hf1-andy/ch0304/sketch.txt')
    for each_line in data:
        try:
            (role,saying) = each_line.split(':', 1)
            print(role, end = '')
            print('[saying]', end = '')
            print(saying, end = '')
        except ValueError:
            pass
    data.close()
except IOError:
    print("File open error")


